package com.td.module.system.controller.admin.growth.vo.data;

import com.alibaba.excel.annotation.ExcelProperty;
import com.td.framework.excel.core.annotations.DictFormat;
import com.td.framework.excel.core.convert.DictConvert;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 生长周期 Excel VO
 *
 * @author wangxx
 */
@Data
public class GrowthModuleDataExcelVO {

    @ExcelProperty("数据编码")
    private Long id;

    @ExcelProperty("数据排序")
    private Integer sort;

    @ExcelProperty("名称")
    private String name;

    @ExcelProperty("生长时间")
    private String times;

    @ExcelProperty("模型归属")
    private String moduleAttribution;

    @ExcelProperty("模型类型")
    private String growthType;

    @ExcelProperty(value = "状态（0正常 1停用）", converter = DictConvert.class)
    @DictFormat("common_status") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Byte status;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
